package com.beney.message.auth;

import com.beney.message.Message;

public class AuthResp implements Message {

    public final static String TYPE = "AUTH_RESP";

    public final static int CODE_SUCCESS = 0;
    public final static int CODE_FAIL = 1;

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public AuthResp setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public AuthResp setMessage(String message) {
        this.message = message;
        return this;
    }

    @Override
    public String toString() {
        return "AuthResp{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
